<!DOCTYPE html>
<html lang="zh" data-theme="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mimi 秘密 - 安全的密码管理器</title>
    <script>
        // 预加载主题设置
        (function() {
            const savedTheme = localStorage.getItem('theme') || 'dark';
            document.documentElement.setAttribute('data-theme', savedTheme);
        })();
    </script>
    <link rel="stylesheet" href="./css/style.css">
    <link rel="stylesheet" href="./css/theme.css">
</head>
<body>
    <canvas id="matrixBg"></canvas>
    <div class="cyber-lines"></div>
    
    <div id="app">
        <div id="auth-container" class="container">
            <div class="cyber-terminal">
                <div class="terminal-header">
                    <div class="header-dots">
                        <span></span>
                        <span></span>
                        <span></span>
                    </div>
                    <div class="terminal-title">MIMI SECURE SYSTEM v1.0</div>
                </div>
                
                <div class="terminal-content">
                    <div class="boot-sequence">
                        <div class="type-line">></span> 系统启动中...</div>
                        <div class="type-line">></span> 初始化安全模块...</div>
                        <div class="type-line">></span> 加载加密协议...</div>
                        <div class="type-line">></span> AES-GCM 加密就绪</div>
                        <div class="type-line">></span> PBKDF2 加密就绪</div>
                        <div class="type-line">></span> 生物认证模块已激活</div>
                        <div class="type-line">></span> 等待用户验证...</div>
                    </div>

                    <div id="login-form" class="cyber-form">
                        <div class="input-group">
                            <div class="cyber-input">
                                <label for="email">> USER_ID:</label>
                                <input type="email" id="email" autocomplete="off" required>
                                <div class="input-line"></div>
                            </div>
                            
                            <div class="cyber-input">
                                <label for="password">> MASTER_KEY:</label>
                                <input type="password" id="password" required>
                                <div class="input-line"></div>
                                <div class="password-strength"></div>
                            </div>
                        </div>

                        <div class="security-status">
                            <div class="status-item">
                                <span class="status-dot"></span>
                                端到端加密
                            </div>
                            <div class="status-item">
                                <span class="status-dot"></span>
                                零知识存储
                            </div>
                            <div class="status-item">
                                <span class="status-dot"></span>
                                生物认证
                            </div>
                        </div>

                        <button id="login-btn" class="cyber-button">
                            <span class="button-text">> AUTHENTICATE</span>
                            <div class="button-glitch"></div>
                        </button>

                        <a href="#" id="forgot-password" class="terminal-link">> 重置加密密钥</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="js/main.js"></script>
    <script type="module" src="js/crypto_front.js"></script>
    <script type="module" src="js/auth_front.js"></script>
    <script src="js/auth_front.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <script src="js/matrix.js"></script>
</body>
</html> 